package com.yznmall.mall.dao;

import com.yznmall.mall.entity.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopDao {
    /**
     * 店铺列表
     */
    List<Shop> queryShopList(@Param("shopCondition") Shop shopCondition, @Param("rowIndex") int rowIndex,
                             @Param("pageSize")int pageSize);
    /**
     * 店铺总数
     *
     */
    int queryShopCount(@Param("shopCondition") Shop shopCondition);
    /**
     *新增店铺
     * @param shop
     * @return
     */
   int insertShop(Shop shop);

    /**
     * 更新店铺
     * @param shop
     * @return
     */
   int updateShop(Shop shop);
    /**
     * 查询店铺
     */
    Shop queryByShopId(long shopId);
}
